package cn.com.wind.bdg.polish.polish.service;


import java.io.IOException;

import cn.com.wind.bdg.polish.polish.entity.HBaseModel;
import cn.com.wind.bdg.polish.polish.exception.DataInvalidException;
import cn.com.wind.bdg.polish.polish.exception.DataNotFoundException;


public interface HBaseService {
    /**
    *@Description Hbase数据保存方法
    *@Param [hBaseModel] 存储保存内容及相关属性的对象
    *@Return void
    *@Author wsun.Frank
    *@Date 2020/8/12
    */
    public void save(HBaseModel hBaseModel) throws DataInvalidException, IOException;
    /**
    *@Description Hbase數據查詢方法
    *@Param [tableNameStr, rowkey] 表名，rowkey
    *@Return com.wind.bdg.middlewarelearndemo.model.HBaseModel 存储保存内容及相关属性的对象
    *@Author wsun.Frank
    *@Date 2020/8/12
    */
    public HBaseModel query(String tableNameStr, String rowkey) throws DataInvalidException, DataNotFoundException,IOException;
    /**
    *@Description Hbase數據刪除方法
    *@Param [tableNameStr, rowkey] 表名，rowkey
    *@Return void
    *@Author wsun.Frank
    *@Date 2020/8/13
    */
    public void delete(String tableNameStr, String rowkey) throws DataInvalidException,IOException;
}
